import Vue from 'vue'
import App from './App.vue'
import router from './router'

import "@/assets/css/iconfont.css"
import "@/assets/css/base.css"

import axios from 'axios'
import "@/plugins/element.js" 

Vue.config.productionTip = false

//设置请求公共路径
//axios.defaults.baseURL = "http://120.79.70.32:8889"

//请求拦截器
axios.interceptors.request.use(config => {
	config.headers.Authorization = window.sessionStorage.getItem('token')
	return config
})

//挂载到Vue原型
Vue.prototype.$axios = axios
 
new Vue({
  router,
  render: h => h(App)
}).$mount('#app')

